<!--{template admin/header.html}-->
<link href="{CSS_URL}/jquery/jquery.ajaxtree.css" rel="stylesheet" type="text/css" />
<script src="{JS_URL}/jquery/jquery.ajaxtree.js" type="text/javascript"></script>
<div id="main">
    <div id="shortcut">
        <a href="{APP_URL}/index.php/{$m}">返回首页</a> <span>&raquo;</span> <a href="{APP_URL}/index.php/{$m}/{$p}">添加文章</a>
    </div>
    <div id="content">
        <div class="ui-formular-info info ui-state-highlight ui-corner-all">
            <p>
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.3em;"></span>
                <em>*</em>为必填项
            </p>
            <p id="ajax_return" style="display:hidden">
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.3em;"></span>
                <span id="ajax_msg"></span>
            </p>
        </div>
        <div class="ui-formular-error"></div>

        <div id="tabs">
            <ul>
                <li><a id="article_title_link" href="#tabs-1">文章信息</a></li>
                <li><a href="#tabs-2">文章内容</a></li>
            </ul>

            <div id="tabs-1">
                <form id="form-1" action="{APP_URL}/index.php/{$m}/{$p}/a/post1" method="post">
                    <div id="category_container">
                    
                        <div id="category_tree">
                            <div style="height:1px; margin-top:-1px;clear: both;overflow:hidden;"></div>
                        </div>
                        <div id="category_main">
                            <input type="hidden" name="action" value="title" />
                            <input type="hidden" id="article_id" name="article_id" value="$data['id']" />
                            <p><label for="cat_name">所属分类：<em title="Needed">*</em></label>
                                <input type="hidden" id="cat_id" name="cat_id" value="{$data['cat_id']}" />
                                <input type="text" id="cat_name" name="cat_name" value="{$data['cat_name']}" readonly/></p>
                            <p><label for="title">文章标题：<em title="Needed">*</em></label>
                                <input type="text" id="title" name="title" value="{$data['title']}" /></p>
                            <p><label for="short_title">　短标题：<em title="Needed">*</em></label>
                                <input type="text" id="short_title" name="short_title" value="{$data['short_title']}" /></p>
                            <p><label for="author">　　作者：<em title="Needed">&nbsp;&nbsp;</em></label>
                                <input type="text" id="author" name="author" value="{$data['author']}" /></p>
                            <p><label for="from">　　来源：<em title="Needed">&nbsp;&nbsp;</em></label>
                                <input type="text" id="from" name="from" value="{$data['from']}" /></p>
                            <p><label for="from_url">来源地址：<em title="Needed">&nbsp;&nbsp;</em></label>
                                <input type="text" id="from_url" name="from_url" value="{$data['from_url']}" /></p>
                            <p><label for="summary">　　摘要：<em title="Needed">&nbsp;&nbsp;</em></label>
                                <textarea id="summary" name="summary">{$data['summary']}</textarea></p>
                        </div>
                    </div>
                    <hr class="ui-widget-content" />
                    <p align="center"><input type="button" id="submit_title" value="保存" /></p>
                </form>
            </div>
            <div id="tabs-2">
                <form id="form-{$k}">
                    <p align="center">{echo $CKEditor->editor('article_content',$data['content'])}</p>
                    <hr class="ui-widget-content" />
                    <p align="center"><input type="button" id="submit_content" value="保存" /></p>
                </form>
            </div>
        </div>
        <div style="height:1px; margin-top:-1px;clear: both;overflow:hidden;"></div>
    </div>

</div>

<!--{template admin/footer.html}-->
